Skip to content

added flood data class and root#32

Open
MFStark wants to merge 2 commits intomainfrom
feature/add-flood-root
Open

added flood data class and root#32
MFStark wants to merge 2 commits intomainfrom
feature/add-flood-root

Conversation

@MFStark
Copy link
Collaborator

@MFStark MFStark commented Mar 28, 2025

No description provided.

@MFStark MFStark requested a review from collijk March 28, 2025 17:56
self._root = Path(root)
self._credentials_root = self._root / "credentials"
self._read_only = read_only
if not read_only:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't want this here. The flooding directory is always read-only in this repository. I have it for the ClimateData class because this repo has pipeline stages where climate data is an output directory and other stages that only consume from the climate data and write to the aggregates directory.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 997-1009

read_only: bool = False,
) -> None:
self._root = Path(root)
self._credentials_root = self._root / "credentials"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This object doesn't need credentials. The credentials are for accessing external services (e.g. the ERA5 dbs) or storage we share with partners (e.g. Azure blobs for buildings/populations)

def results_metadata(self) -> Path:
return self.results / "metadata"

def save_scenario_metadata(self, df: pd.DataFrame) -> None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No save functions on this object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments